package org.fly.jingwei.service;

import net.sf.json.JSONObject;
import org.fly.jingwei.entity.TransformationEntity;

import java.util.List;

/**
 * @author leo
 * @date 2017/2/22
 */
public interface TransService {
    JSONObject findTrans(int start, int limit, String transName, String createDate, String userGroupName) throws Exception;

    void deleteTransformation(String transPath, String flag) throws Exception;

    void executeTransformation(String path, Integer slaveId);

    List<TransformationEntity> getTransPath(List<TransformationEntity> items);

    TransformationEntity getTransByName(String transName);

    boolean updateTransName(String oldName, String newName);
}
